package com.yuke.cloud.service.omc.service;

import com.yuke.cloud.common.core.support.IService;
import com.yuke.cloud.service.api.cmc.dto.CmsSysInfoDto;
import com.yuke.cloud.service.api.smc.dto.ShopInfoDto;
import com.yuke.cloud.service.omc.dto.CommissionInfo;
import com.yuke.cloud.service.omc.dto.OdsCommissionDto;
import com.yuke.cloud.service.omc.entity.OdsCommission;

import java.util.List;
import java.util.Map;


/**
 * Created by wg on 2019/05/18.
 */
public interface OdsCommissionService extends IService<OdsCommission> {

    /**
     * 返回0：正常，-1，没有可提现的佣金
     * @param odsCommission
     * @return
     */
    int saveCommission(OdsCommission odsCommission);

    void updateCommission(OdsCommission odsCommission);

    /**
     * 返回0：正常，-1，没有对应的提现单
     * @param odsCommission
     * @return
     */
    int withdrawCommission(OdsCommission odsCommission);

    CommissionInfo getCommissionInfo(Long shopId);

    int saveCommissionMonthRebate(OdsCommission odsCommission);

    int saveShopCommission(OdsCommissionDto odsCommissionDto);

    Map<String,String> getMonthRebate(Long groupId);

    List<ShopInfoDto> getShopIdsByCondition();

    CmsSysInfoDto getShopCommissionRebate(Long groupId);
}
